<?php get_header(); ?>


<?php include (TEMPLATEPATH . '/framework/includes/get_pages_top.php'); ?>

<div class="page_container_bg">
	<div class="page_container clearfix">
		<div class="page_content">
			<div class="page_content_text">
				
				<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>

				<!-- begin blog container -->
				<div class="blog_container">
				
				
					<div class="blog_head">
						<div class="cleardiv"></div>
							
						<div class="blog_info">	
							<ul>
								<li class="date_icon"><?php the_time('M j, Y'); ?></li>
								<li class="written_by">by <a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>"><?php the_author() ?></a></li>
								<li class="category"><?php the_category(', ') ?></li>
								<li class="comment_icon"><?php comments_popup_link(get_option('cf_no_comments', 'No Comments').' &#187;', get_option('cf_one_comment', 'One Comment').' &#187;', '% '.get_option('cf_one_comments', 'Comments').' &#187;', 'commentslink', get_option('cf_off_comments', 'Comments Off')); ?></li>
							</ul>
							<?php if(get_the_tags()){ ?>
							<div class="blog_tag">
								<?php the_tags('<ul><li>',',</li><li>','</li></ul>'); ?>
							</div>
							<?php } ?>
						</div>
					</div>
					
					
					<!-- begin detail text -->
					<div class="blog_text">
						<?php the_content(); ?>
					</div>
					<!-- begin detail text -->
				
				</div>
				<?php endwhile; ?>

				<?php comments_template( '', true ); ?>
		
			</div>
		</div>
		
		<div class="page_right_content">
			<div class="page_right_sidebars">	
				<?php if (function_exists('dynamic_sidebar') && dynamic_sidebar('Simple Sidebars')) {} else { } ?>
				<?php get_sidebar(); ?>
			</div>
			
		</div>

	</div>
</div>
		
<?php get_footer(); ?>
